<template>
<h1>El-选择器组件</h1>
  <el-select v-model="city" placeholder="请选择一个你喜欢的城市" style="width: 50%;">
    <el-option value="北京" label="北京"></el-option>
    <el-option value="上海" label="上海"></el-option>
    <el-option value="常州" label="常州"></el-option>
  </el-select>
  <h3>您选择的城市是:{{city}}</h3>
</template>


<script setup>
import {ref} from "vue";

const city = ref('');

</script>

<style scoped>

</style>